Skip to content

Replace auto-merge workflow with Dependabot solution#7

Merged
markhallen merged 2 commits intomainfrom
dependabot-automerge
Aug 2, 2025
Merged

Replace auto-merge workflow with Dependabot solution#7
markhallen merged 2 commits intomainfrom
dependabot-automerge

Conversation

@markhallen
Copy link
Copy Markdown
Owner

Eliminate the circular dependency issue in the auto-merge workflow by replacing it with a simpler and more reliable Dependabot solution. This change prevents the workflow from hanging indefinitely and ensures only meaningful CI checks are waited for. Debug logging has been added to assist in troubleshooting.

- Filter out auto-merge workflow checks to avoid circular dependency
- Only wait for meaningful CI checks (CI, test, build, lint, RuboCop)
- Add debug logging to help troubleshoot check detection
- Add fallback for cases with no relevant CI checks to wait for

This resolves the issue where the auto-merge workflow would hang
indefinitely waiting for itself to complete.
…lution

- Remove problematic auto-merge.yml that waited for itself (circular dependency)
- Add dependabot-auto-merge.yml using official Dependabot metadata action
- Use GitHub's built-in auto-merge feature instead of custom implementation
- Only auto-merge patch version updates for safety
- Simpler, more reliable approach that doesn't hang

The new workflow uses the proven dependabot/fetch-metadata action and
GitHub's native auto-merge functionality, eliminating the circular
dependency issue with the previous custom implementation.
@markhallen markhallen merged commit 376e0f8 into main Aug 2, 2025
5 checks passed
@markhallen markhallen deleted the dependabot-automerge branch August 2, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant